package com.xian.historyDistines.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.xian.common.annotation.Excel;
import com.xian.common.core.domain.BaseEntity;

/**
 * 朝代简介对象 t_historical_dynasties
 * 
 * @author ruoyi
 * @date 2025-04-04
 */
public class THistoricalDynasties extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 朝代 */
    @Excel(name = "朝代")
    private String name;

    /** 启年 */
    @Excel(name = "启年")
    private Long startYear;

    /** 亡于 */
    @Excel(name = "亡于")
    private Long endYear;

    /** 存续 */
    @Excel(name = "存续")
    private Long duration;

    /** 时代背景 */
    @Excel(name = "时代背景")
    private String historyBackground;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setStartYear(Long startYear) 
    {
        this.startYear = startYear;
    }

    public Long getStartYear() 
    {
        return startYear;
    }

    public void setEndYear(Long endYear) 
    {
        this.endYear = endYear;
    }

    public Long getEndYear() 
    {
        return endYear;
    }

    public void setDuration(Long duration) 
    {
        this.duration = duration;
    }

    public Long getDuration() 
    {
        return duration;
    }

    public void setHistoryBackground(String historyBackground) 
    {
        this.historyBackground = historyBackground;
    }

    public String getHistoryBackground() 
    {
        return historyBackground;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("startYear", getStartYear())
            .append("endYear", getEndYear())
            .append("duration", getDuration())
            .append("historyBackground", getHistoryBackground())
            .toString();
    }
}
